package entity;

import entity.annotation.Manytoone;
import entity.annotation.Table;

@Table(name="t_student")
public class Student {
	private Integer id;
	private Integer student_id;
	private String student_name;
	private Integer student_age;
	private Integer academy_id;
	@Manytoone(mappedby="Academy",mappedfk="academy_id")
	private Academy academy;
	@Manytoone(mappedby="Score",mappedfk="student_id")
	private Score score;
	
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Integer getStudent_id() {
		return student_id;
	}
	public void setStudent_id(Integer student_id) {
		this.student_id = student_id;
	}
	public String getStudent_name() {
		return student_name;
	}
	public void setStudent_name(String student_name) {
		this.student_name = student_name;
	}
	public Integer getStudent_age() {
		return student_age;
	}
	public void setStudent_age(Integer student_age) {
		this.student_age = student_age;
	}
	public Integer getAcademy_id() {
		return academy_id;
	}
	public void setAcademy_id(Integer academy_id) {
		this.academy_id = academy_id;
	}
	public Academy getAcademy() {
		return academy;
	}
	public void setAcademy(Academy academy) {
		this.academy = academy;
	}
	
}
